package com.chazz.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * 规格表，储存通用规格信息(Sku)实体类
 *
 * @author makejava
 * @since 2020-09-21 14:13:52
 */
public class Sku implements Serializable {

//    private static final long serialVersionUID = 147976295325776775L;
    /**
     * 规格id
     */
    private Integer specsid;
    /**
     * 商品id
     */
    private Integer goodsid;
    /**
     * 商品规格
     */
    private String goodsattribute;
    /**
     * 库存
     */
    private Integer stock;
    /**
     * 商品单价
     */
    private String price;
    /**
     * 商品状态(是否上架，0：下架，1：下架)
     */
    private Integer status;
    /**
     * 创建时间
     */
    private Date createtime;
    /**
     * 更新时间
     */
    private Date update;


    public Integer getSpecsid() {
        return specsid;
    }

    public void setSpecsid(Integer specsid) {
        this.specsid = specsid;
    }

    public Integer getGoodsid() {
        return goodsid;
    }

    public void setGoodsid(Integer goodsid) {
        this.goodsid = goodsid;
    }

    public String getGoodsattribute() {
        return goodsattribute;
    }

    public void setGoodsattribute(String goodsattribute) {
        this.goodsattribute = goodsattribute;
    }

    public Integer getStock() {
        return stock;
    }

    public void setStock(Integer stock) {
        this.stock = stock;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Date getUpdate() {
        return update;
    }

    public void setUpdate(Date update) {
        this.update = update;
    }

    @Override
    public String toString() {
        return "Sku{" +
            "specsid=" + specsid +
            ", goodsid=" + goodsid +
            ", goodsattribute='" + goodsattribute + '\'' +
            ", stock=" + stock +
            ", price='" + price + '\'' +
            ", status=" + status +
            ", createtime=" + createtime +
            ", update=" + update +
            '}';
    }
}